home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / misc / DragBoxP.lha / DragBox_Patch.txt < prev    next >
Text File  |  1999-02-08  |  7KB  |  261 lines

  1.  
  2. -DragBox_Patch- v1.8 (08.02.1999)
  3.  
  4.  
  5. Introduction
  6. ************
  7.  
  8. This program does the same as DragBox but is patched to
  9. OpenWindow() and OpenWindowTaglist() functions.
  10. Read more info from DragBox
  11.  
  12.  
  13. Distribution
  14. ************
  15.  
  16.    Copyright (C) 1999 Juha 'Asa' Pinola
  17.  
  18.    DragBox_Patch  is  available  as  freeware.   That  is, it may be freely
  19. distributed  in  unmodified  form with no changes what so ever, but you may
  20. not  charge  more than a nominal fee covering distribution costs.  However,
  21. donations are welcome.
  22.  
  23.    If  you use this software in a commercial or shareware software product,
  24. please   consider  giving  the  author  and  preferably  each  one  of  the
  25. contributors an original or registered version of your work.
  26.  
  27.    If you wish to distribute this software with a hardware product, contact
  28. the  author.   Distribution  of DragBox_Patch with hardware products is not
  29. free.
  30.  
  31.    THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
  32. EXPRESS  OR  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  33. WARRANTIES  OF  MERCHANTABILITY  AND  FITNESS  FOR A PARTICULAR PURPOSE ARE
  34. DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
  35. DIRECT,  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  36. (INCLUDING,  BUT  NOT  LIMITED  TO,  PROCUREMENT  OF  SUBSTITUTE  GOODS  OR
  37. SERVICES;  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  38. CAUSED  AND  ON  ANY  THEORY  OF  LIABILITY,  WHETHER  IN  CONTRACT, STRICT
  39. LIABILITY,  OR  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  40. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  41. DAMAGE.
  42.  
  43. ****************************************
  44.  
  45.  
  46. Installing
  47. ----------
  48.  
  49. Just copy DragBox_Patch to c: or somewhere else.
  50. And DRAGBOX_PATCH_PATTERNS to s: or where ever you like.
  51.  
  52. Add a line "run >nil: c:DragBox_Patch s:DRAGBOX_PATCH_PATTERNS >nil:"
  53. to s:startup-sequence
  54.  
  55. PatchControl or SetMan recommended !
  56.  
  57. Works fine on any 68k CPUs.
  58.  
  59. Read Notes and Bugs part.
  60.  
  61. (if doesn't work with KS2.x or lower, please let me know)
  62.  
  63. ****************************************
  64.  
  65.  
  66. The Author
  67. ----------
  68.  
  69.    The author can be reached at the following addresses:
  70.  
  71. Electronic mail
  72.      jpinola@cs.joensuu.fi
  73.  
  74. World-Wide Web
  75.      http://cs.joensuu.fi/~jpinola
  76.  
  77. IRC: Asa/#amigafin/#amycoders
  78.  
  79.  
  80. ****************************************
  81.  
  82.  
  83. Example PATTERN files:
  84.  
  85. --- clip ---
  86. #
  87. # Comments can be added with #
  88. #
  89. # Do NOT use * if you get errors when running DragBox_Patch
  90. # use #?
  91. #
  92. # If no pattern given then all parameters are set to global
  93. center right cback 0x884422 cbright 0xffaa55 cdark 0x442200 ctext 0x442200 cshadow 0xaa7733
  94. #
  95. # Here we set one Window pattern for IconCopy program
  96. # all other parameters are taken from global presets
  97. wp "IconCopy#?"
  98. #
  99. # Change only background color for this one
  100. wp "Commander#?" cback 0x000000
  101. #
  102. # you can change global variables at any time
  103. notitle win_x 0 win_y 0
  104. #
  105. # You can also set pattern from Task name
  106. tp "IBrowse#?"
  107. #
  108. --- clip end ---
  109.  
  110.  
  111.  
  112. ****************************************
  113.  
  114.  
  115. Command line parameters:
  116.  
  117. "PATTERNS"
  118.  
  119.  
  120. PATTERNS         = To set your PATTERN file
  121.                                    (default name:  DRAGBOX_PATCH_PATTERNS)
  122.  
  123.  
  124. ****************************************
  125.  
  126.  
  127. Pattern file parameters:
  128.  
  129.  
  130. "WP=WIN_PATTERN/K,TP=TASK_PATTERN/K,
  131.  C=CENTER/S,L=LEFT/S,M=MIDDLE/S,R=RIGHT/S,
  132.  F=FONT/K,FS=FSIZE/N/K,
  133.  CBACK=COL_BACK/K,CBRIGHT=COL_BRIGHT/K,CDARK=COL_DARK/K,
  134.  CSHADOW=COL_SHADOW/K,CTEXT=COL_TEXT/K,
  135.  WX=WIN_X/N/K,WY=WIN_Y/N/K,NOW=NOWIN/S,
  136.  TO=TIME_OUT/N/K,AD=ADRAG/S,REL=RELATIVE/S,
  137.  AX=ALT_X/K,AY=ALT_Y/K,AW=ALT_W/K,AH=ALT_H/K,NOTITLE/S,
  138.  SHADOW_HEIGHT/N/K,LINE_PATTERN/K,LINE_DRAWMODE/N/K,
  139.  NOBLOCK/S"
  140.  
  141. WIN_PATTERN      = Pattern for window name
  142. TASK_PATTERN     = Pattern for task name
  143. CENTER           = Dragbox is in the middle of mouse pointer
  144. LEFT             = Left button
  145. MIDDLE           = Middle button
  146. RIGHT            = Right button
  147. FONT             = Name of the font
  148. FSIZE            = Size of the font
  149. COL_BACK         = Color for background        (example COL_BACK 23ff00   is 0x23 , for red 0xff for green , and 0x00 for blue)
  150. COL_BRIGHT       = Color for bright edge of window
  151. COL_DARK         = Color for dark edge of window
  152. COL_SHADOW       = Color for shadow of text
  153. COL_TEXT         = Color for text
  154. WIN_X            = left edge coord for the coords window
  155. WIN_Y            = top edge coord for the coords window
  156. NOWIN            = no coords window
  157. TIME_OUT         = dragbox time out. -1 for infinite (default is 20 intuiticks aprox)
  158. ADRAG            = Box can be dragged after resize operation
  159. RELATIVE         = Dragbox is relative to starting position of mouse
  160. ALT_X            = Alternative x  (absolute values. use - or + sign to relative values)
  161. ALT_Y            = Alternative y
  162. ALT_W            = Alternative w
  163. ALT_H            = Alternative h
  164. NOTITLE          = Do not change screen title
  165. SHADOW_HEIGHT    = Height of the shadow
  166. LINE_PATTERN     = Line drawing pattern in hex. (16 pix pattern)
  167.                    0xFFFF full lines        {----------------} (default)
  168.                    0x0000 nothing           {                }
  169.                    0xAAAA every other dot   {- - - - - - - - }
  170.                    0xFF00                   {--------        }
  171.                    0xAA55                   {- - - -  - - - -}
  172. LINE_DRAWMODE    = Sets draw mode for the line (I'm not sure does this even alter anything)
  173.                    0 -> COMPLEMENT (default)
  174.                    1 -> COMPLEMENT | JAM2
  175. NOBLOCK          = Disables Layer locks. If you get lock ups then use this flag.
  176.  
  177. ****************************************
  178.  
  179. Notes and bugs:
  180.  
  181. Use middle or right mouse button with this (right is default),
  182. because WB uses left button with it's dragbox..
  183.  
  184. Workbench Execute command does not work with Dragbox Do NOT use !
  185. And some Workbench prefs programs.
  186.  
  187. Not very useful when opening windows to other screens than WB
  188. because you get dragbox window to the public screen.
  189.  
  190. It seems that MUI window sets its Max/Min limits after the window
  191. is opened so the DragBox can't get right limits and you should
  192. only drag and drop the window.
  193.  
  194. You can remove patches with CTRL-C or sending Break.
  195.  
  196. WA_InnerWidth,WA_InnerHeight are not supported properly yet.
  197.  
  198. Time is calculated from INTUITICKS.
  199.  
  200. If your computer locks up then use NOBLOCK/S switch.
  201.  
  202. Dragbox quits when:
  203. 1. Selected button is pressed and released
  204. 2. When coord window is deactived (if you have sunpopup or something, sorry)
  205. 3. Keys Return/Esc/Spacebar is pressed
  206.  
  207.  
  208. ****************************************
  209.  
  210. History:
  211.  
  212. --------------
  213. v 1.8
  214.  
  215. + NOBLOCK/S added
  216. + Shadow of the coords window is hopefully working with gfxcards
  217.  
  218. --------------
  219. v 1.7
  220.  
  221. + SHADOW_HEIGHT/N/K added
  222. + LINE_PATTERN/K added
  223. + LINE_DRAWMODE/N/K added
  224. + Now uses same version numbers than DragBox
  225. + No screen littering anymore
  226. - The LockLayers() func hangs up whole computer somehow.
  227.   If someone knows how to disable screen rendering more safely
  228.   please let me know.
  229.     (Can be switched of with NOBLOCK/S)
  230.  
  231. --------------
  232. v 0.5
  233.  
  234. + Ach, pattern matching working now correctly.
  235.  
  236. --------------
  237. v 0.4
  238.  
  239. + Pattern match bug fixed
  240. + Screens title will show what program tries to open a window
  241. + NOTITLE/S added
  242.  
  243. --------------
  244. v 0.3
  245.  
  246. + Added semaphore protection. (How the hell I did forgot this :)
  247.  
  248. --------------
  249. v 0.2
  250.  
  251. + Fixed TASK_PATTERN/K
  252. + Fixed window Min/Max Width/Height limits
  253.  
  254. --------------
  255. v 0.1
  256.  
  257. + First public version of DragBox_Patch
  258.  
  259.  
  260.  
  261.